package com.aloda.ojquestion.service;

import com.aloda.ojcommon.domain.result.PageResult;
import com.aloda.ojquestion.pojo.dto.QuestionSubmitDTO;
import com.aloda.ojquestion.pojo.dto.QuestionSubmitPageDTO;
import com.aloda.ojcommon.domain.entity.QuestionSubmit;
import com.aloda.ojquestion.pojo.vo.QuestionSubmitPageVO;
import com.aloda.ojquestion.pojo.vo.QuestionSubmitVO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author aloda
* @description 针对表【question_submit(题目提交表)】的数据库操作Service
* @createDate 2025-04-25 15:51:38
*/
public interface QuestionSubmitService extends IService<QuestionSubmit> {

    /**
     * 提交题目
     * @param questionSubmitDTO
     * @return
     */
    QuestionSubmitVO submitQuestion(QuestionSubmitDTO questionSubmitDTO);

    /**
     * 校验题目提交参数
     * @param questionSubmitDTO
     */
    void checkQuestionSubmit(QuestionSubmitDTO questionSubmitDTO);

    /**
     * 分页查询
     * @param questionSubmitPageDTO
     * @return
     */
    PageResult<QuestionSubmitPageVO> pageQuery(QuestionSubmitPageDTO questionSubmitPageDTO);
}
